<!doctype html>
<html ng-app="asch">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Asch</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=10, minimum-scale=0.1">
    <meta content="telephone=no" name="format-detection" />
    <link href="favicon.ico" href="favicon.ico" rel="icon" type="image/x-icon" />
    <!-- build:css [cssBuildPath] -->
    <link rel="stylesheet" href="/app.css">
    <link rel="stylesheet" href="/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="/ng-table/dist/ng-table.min.css">
    <link rel="stylesheet" href="/partials/common/footer/footer.scss">
    <link rel="stylesheet" href="/partials/common/pager/pager.scss">
    <link rel="stylesheet" href="/partials/common/header/header.scss">
    <link rel="stylesheet" href="/partials/login/index.scss">
    <link rel="stylesheet" href="/partials/pay/index.scss">
    <link rel="stylesheet" href="/partials/peer/index.scss">
    <link rel="stylesheet" href="/partials/home/home.scss">
    <link rel="stylesheet" href="/partials/application/index.scss">
    <link rel="stylesheet" href="/partials/personal/personal.scss">
    <link rel="stylesheet" href="/partials/modal/assignee/index.scss">
    <link rel="stylesheet" href="/partials/modal/dealinfo/index.scss">
    <link rel="stylesheet" href="/partials/modal/blockdetail/index.scss">
    <link rel="stylesheet" href="/partials/modal/accountdetail/index.scss">
    <link rel="stylesheet" href="/partials/modal/voteto/index.scss">
    <link rel="stylesheet" href="/partials/blockchain/index.scss">
    <link rel="stylesheet" href="/partials/common/toast/toast.scss">
    <link rel="stylesheet" href="/partials/blockforging/index.scss">
    <link rel="stylesheet" href="/partials/vote/index.scss">
    <link rel="stylesheet" href="/partials/asset/index.scss">
    <link rel="stylesheet" href="/partials/addACL/index.scss">
    <link rel="stylesheet" href="/partials/reduceACL/index.scss">
	<!-- endbuild -->
</head>
<body ng-class="{'isbg':!userlogin}">
<div ng-class="{'isLogo':!userlogin}"></div>
<div ng-class={'bodyMask':isBodyMask}></div>
<div ng-class={'bodyMaskWhite':isBodyMaskWhite}></div>
<div id="bd">
    <!--<div id="footer"  ng-show="userlogin" ng-include="'partials/common/footer/index.html'"></div>-->
    <div id="header" ng-show="userlogin" ng-include="'partials/common/header/header.html'"></div>
    <div id="assignee" ng-show="assigneeinfo" ng-include="'partials/modal/assignee/index.html'"></div>
    <div id="dealinfo" ng-show="dealdetailinfo" ng-include="'partials/modal/dealinfo/index.html'"></div>
    <div id="blockdetail" ng-show="blockdetailinfo" ng-include="'partials/modal/blockdetail/index.html'"></div>
    <div id="accountdetail" ng-show="accountdetailinfo" ng-include="'partials/modal/accountdetail/index.html'"></div>
    <div id="voteto" ng-show="votetoinfo" ng-include="'partials/modal/voteto/index.html'"></div>
    <div id="deletevoteto" ng-show="deletevotetoinfo" ng-include="'partials/modal/deletevote/index.html'"></div>
    <div ng-class="{'bodycontent':userlogin}"  ng-view></div>
</div>
<!-- build:js [jsBuildPath] -->
<script type="text/javascript" src="/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="/angular/angular.min.js"></script>
<script type="text/javascript" src="/ng-table/dist/ng-table.js"></script>
<script type="text/javascript" src="/bootstrap/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="/angular-bootstrap/ui-bootstrap.js"></script>
<script type="text/javascript" src="/partials/common/pagination/tm.pagination.js"></script>
<script type="text/javascript" src="/partials/common/toast/toast.js"></script>
<script type="text/javascript" src="/partials/common/translateErr/translateErrMsg.js"></script>
<script type="text/javascript" src="/angular-route/angular-route.js"></script>
<script type="text/javascript" src="/angular-cookie/angular-cookie.min.js"></script>
<script type="text/javascript" src="/qrcode/lib/qrcode.min.js"></script>
<script type="text/javascript" src="/angular-qr/angular-qr.min.js"></script>
<script type="text/javascript" src="/angular-translate/angular-translate.js"></script>
<script type="text/javascript" src="/browserify-asch.js"></script>
<script type="text/javascript" src="/bignumber.min.js"></script>
<script type="text/javascript" src="/bitcore-mnemonic.js"></script>
<script type="text/javascript" src="/translations/en-us.js"></script>
<script type="text/javascript" src="/translations/zh-cn.js"></script>
<script type="text/javascript" src="/translations/de-de.js"></script>
<script type="text/javascript" src="/app.module.js"></script>
<script type="text/javascript" src="/app.route.js"></script>
<script type="text/javascript" src="/app.run.js"></script>
<script type="text/javascript" src="/service/nodeService.js"></script>
<script type="text/javascript" src="/service/apiService.js"></script>
<script type="text/javascript" src="/service/postSerivice.js"></script>
<script type="text/javascript" src="/service/userService.js"></script>
<script type="text/javascript" src="/partials/home/homeCtrl.js"></script>
<script type="text/javascript" src="/partials/vote/voteCtrl.js"></script>
<script type="text/javascript" src="/partials/login/loginCtrl.js"></script>
<script type="text/javascript" src="/partials/pay/payCtrl.js"></script>
<script type="text/javascript" src="/partials/peer/peerCtrl.js"></script>
<script type="text/javascript" src="/partials/asset/assetCtrl.js"></script>
<script type="text/javascript" src="/partials/addACL/addaclCtrl.js"></script>
<script type="text/javascript" src="/partials/reduceACL/reduceaclCtrl.js"></script>
<script type="text/javascript" src="/partials/application/applicationCtrl.js"></script>
<script type="text/javascript" src="/partials/blockforging/blockforgingCtrl.js"></script>
<script type="text/javascript" src="/partials/blockchain/blockchainCtrl.js"></script>
<script type="text/javascript" src="/partials/personal/personalCtrl.js"></script>
<script type="text/javascript" src="/partials/common/header/headerCtrl.js"></script>
<script type="text/javascript" src="/partials/modal/assignee/assigneeCtrl.js"></script>
<script type="text/javascript" src="/partials/modal/blockdetail/blockdetailCtrl.js"></script>
<script type="text/javascript" src="/partials/modal/accountdetail/accountdetailCtrl.js"></script>
<script type="text/javascript" src="/partials/modal/dealinfo/dealinfoCtrl.js"></script>
<script type="text/javascript" src="/partials/modal/deletevote/deletevoteCtrl.js"></script>
<script type="text/javascript" src="/partials/modal/voteto/votetoCtrl.js"></script>
<script type="text/javascript" src="/filter/timestampFilter.js"></script>
<script type="text/javascript" src="/filter/catalogsFilter.js"></script>
<script type="text/javascript" src="/filter/saveCheckfilter.js"></script>
<script type="text/javascript" src="/filter/savecheckpbulish.js"></script>
<script type="text/javascript" src="/filter/saveCodeFilter.js"></script>
<script type="text/javascript" src="/filter/typeFilter.js"></script>
<script type="text/javascript" src="/filter/feeFilter.js"></script>
<script type="text/javascript" src="/filter/histroyFilter.js"></script>
<script type="text/javascript" src="/filter/xasFilter.js"></script>
<!-- <script type="text/javascript" src="/filter/appBalancesFilter.js"></script> -->
<script type="text/javascript" src="/filter/unitFilter.js"></script>
<script type="text/javascript" src="/partials/tips/tips.js"></script>
<!--<script type="text/javascript" src="/partials/common/DatePicker/WdatePicker.js"></script>-->
<!-- inject:partials -->
<!-- angular templates will be automatically converted in js and inserted here -->
<!-- endinject -->
<!-- endbuild -->
<script>
    $(document).ready(function(){
      var version = navigator.userAgent.toLowerCase();
      var reg = /chrome\/[\d.]+/gi;
      var result;
      var isChinese = true;
    //   console.log(window);
      if (window.navigator.language.indexOf('zh') > -1) {
        isChinese = true;
      } else {
        isChinese = false;
      }
      if (version.indexOf("chrome") > 0) {
        result = version.match(reg);
        version = (result + "").replace(/[^0-9]/ig, "");
        if (Number(String(version).slice(0,2)) < 59) {
            if (isChinese) {
                alert("您浏览器版本小于59，请升级到最新版本的chrome浏览器");
            } else {
                alert("The version of your browser is lower then requirement, plz update to the latest version");
            }
        }
      } else {
          if (isChinese) {
              alert("请使用谷歌浏览器，否则转账等操作可能会失败！");
            } else {
              alert("Please be sure using the lastest version of chrome browser");
            }
      }
        $.ajax({
            type:'HEAD',
            url:window.location.href,
            complete:function(xhr,data){
                var row = xhr.getResponseHeader('Date');
                var serveTime = new Date(row).getTime();
                var localTime = new Date().getTime();
                console.log('serve:',serveTime,'localTime',localTime);
                if (Math.abs(localTime - serveTime) > 30 * 60 * 1000) {
                    if (isChinese) {
                        alert('电脑时间有误，请您调校您的计算机时间.');
                    } else {
                        alert('Your local time is different with server, plz adjust your computert your computer');
                    }
                }
            }
        });
    });
</script>
</body>
</html>
